/*
 * =====================================================================================
 *
 *       Filename:  singlelog.cpp
 *
 *    Description:  
 *
 *        Version:  1.0
 *        Created:  2008年08月27日 15时09分00秒
 *       Revision:  none
 *       Compiler:  g++
 *
 *         Author:  ZhixiongHong (hzx), fishwarter@gmail.com
 *        Company:  Unioncast
 *
 * =====================================================================================
 */

#include "singlelog.h"

#ifdef HAS_SS_NAMESPACE
using namespace ss;
#endif // HAS_SS_NAMESPACE

Logger* SingleLogger::pInstance = NULL;

SingleLogger::~SingleLogger()
{
	if( pInstance )
		delete pInstance;
}

Logger* SingleLogger::getInstance()
{
	if( NULL == pInstance)
	{
		pInstance = new Logger();
	}
	return pInstance;
}
